package net.neptech.model.sample;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.neptech.utils.SnowflakeIdGenerator;
import org.hibernate.annotations.GenericGenerator;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author Saya
 * @Date 2025/8/12 13:25
 * @Description TODO
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "tb_sample")
public class SampleEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @Id
    @GenericGenerator(name = "snowflake", type = SnowflakeIdGenerator.class)
    @GeneratedValue(generator = "snowflake")
    @Column(name = "sample_id", nullable = false)
    private Long sampleId;

    /**
     * 用户名
     */
    @Column(name = "sample_name")
    private String sampleName;

    /**
     * 状态
     */
    @Column(name = "status")
    private String status;
}
